-- GENERATED SPELL FOR [Spectral Chef] --


function spell0_16411(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(29665,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16411', 0, 1)
end

function spell1_16411(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(29667,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16411', 10284, 1)
end

function Sorts_16411(pUnit, Event)
local choix_sorts_16411 = math.random(0, 1)
if choix_sorts_16411 == 0 then
pUnit:RegisterEvent('spell0_16411', 1, 1)
end
if choix_sorts_16411 == 1 then
pUnit:RegisterEvent('spell1_16411', 1, 1)
end
end

function mob16411_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16411', math.random(1500, 3000), 1)
end

function mob16411_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16411_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16411_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16411, 1, 'mob16411_Action')
RegisterUnitEvent(16411, 2, 'mob16411_Leave')
RegisterUnitEvent(16411, 3, 'mob16411_Kill')
RegisterUnitEvent(16411, 4, 'mob16411_Die')
